﻿<script type="text/javascript">

    $(function () {
        $('#sbIsByTon').switchbutton({ checked: @Html.Raw(Model.IsByTon ? "true" : "false") });

    });
</script>
@*<div class="fitem1">
    <label>
        单据编号:
    </label>
    <input class="easyui-textbox" value="系统自动生成" style="width: 173px; height: 30px;">
    <label>
        客户:
    </label>
    <select class="easyui-combogrid" style="width: 173px; height: 30px;" name="CustomerId" id="CustomerId"></select>
    <label>
        客户名称:
    </label>
    <input name="CustomerName" id="CustomerName" class="easyui-textbox" style="width: 173px; height: 30px;" />
</div>
<div class="fitem1">
    <label>
        开单日期:
    </label>
    <input class="easyui-datebox" name="ContractTime" id="ContractTime" value="@Model.ContractTime" style="width: 173px; height: 30px; ">
    <label>
        开始日期:
    </label>
    <input class="easyui-datebox" name="BeginTime" id="BeginTime" style="width: 173px; height: 30px; ">
    <label>
        结束日期:
    </label>
    <input class="easyui-datebox" name="EndTime" id="EndTime" style="width: 173px; height: 30px; ">
</div>*@
<div class="fitem1">
    <label>
        包仓类型:
    </label>
    <select class="easyui-combobox" style="width: 173px; height: 30px;" value="@Model.StoreType" name="StoreType" id="StoreType"></select>
    <label>
        包仓算法:
    </label>
    <select class="easyui-combobox" style="width: 173px; height: 30px;" value="@Model.StoreAlgorithm" name="StoreAlgorithm" id="StoreAlgorithm"></select>
    <label>
        单价（月）:
    </label>
    <input name="UnitPrice" id="UnitPrice" class="easyui-numberbox" value="@Model.UnitPrice" data-options="precision:'2'" style="width: 173px; height: 30px;" autocomplete="off" />
</div>
<div class="fitem1">
    <label>
        数量:
    </label>
    <input name="Number" id="Number" class="easyui-numberbox" value="@Model.Number" style="width: 173px; height: 30px;" autocomplete="off" />
    <label>
        总金额:
    </label>
    <input name="Amount" id="Amount" class="easyui-numberbox" value="@Model.Amount" data-options="precision:'2'" style="width: 173px; height: 30px;" autocomplete="off" />
    <label>
        按吨操作:
    </label>
    <input class="easyui-switchbutton" id="sbIsByTon" data-options="onText:'是',offText:'否'">
    <input type="hidden" id="hidIsByTon" name="IsByTon" />
</div>
<div class="fitem1">
    <label>
        仓库:
    </label>
    <select class="easyui-combogrid" style="width: 173px; height: 30px;" name="WareHouseId" id="WareHouseId"></select>
</div>
<div class="fitem1">
    <label>
        备注:
    </label>
    <textarea rows="4" cols="4" style="width: 400px; height: 90px; vertical-align: top" name="Remark" id="Remark" autocomplete="off" placeholder="200字以内"></textarea>
</div>
